home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 15 / CU Amiga Magazine's Super CD-ROM 15 (1997)(EMAP Images)(GB)[!][issue 1997-10].iso / CUCD / Graphics / Ghostscript / source / gxfont0.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-04-09  |  2.3 KB  |  67 lines

  1. /* Copyright (C) 1994, 1996, 1997 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of Aladdin Ghostscript.
  4.   
  5.   Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  6.   or distributor accepts any responsibility for the consequences of using it,
  7.   or for whether it serves any particular purpose or works at all, unless he
  8.   or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  9.   License (the "License") for full details.
  10.   
  11.   Every copy of Aladdin Ghostscript must include a copy of the License,
  12.   normally in a plain ASCII text file named PUBLIC.  The License grants you
  13.   the right to copy, modify and redistribute Aladdin Ghostscript, but only
  14.   under certain conditions described in the License.  Among other things, the
  15.   License requires that the copyright notice and this notice be preserved on
  16.   all copies.
  17. */
  18.  
  19. /* gxfont0.h */
  20. /* Type 0 (composite) font data definition */
  21.  
  22. /* Define the composite font mapping types. */
  23. /* These numbers must be the same as the values of FMapType */
  24. /* in type 0 font dictionaries. */
  25. typedef enum {
  26.     fmap_8_8 = 2,
  27.     fmap_escape = 3,
  28.     fmap_1_7 = 4,
  29.     fmap_9_7 = 5,
  30.     fmap_SubsVector = 6,
  31.     fmap_double_escape = 7,
  32.     fmap_shift = 8,
  33.     fmap_CMap = 9
  34. } fmap_type;
  35. #define fmap_type_min 2
  36. #define fmap_type_max 9
  37. #define fmap_type_is_modal(fmt)\
  38.   ((fmt) == fmap_escape || (fmt) == fmap_double_escape || (fmt) == fmap_shift)
  39.  
  40. /* This is the type-specific information for a type 0 (composite) gs_font. */
  41. #ifndef gs_cmap_DEFINED
  42. #  define gs_cmap_DEFINED
  43. typedef struct gs_cmap_s gs_cmap;
  44. #endif
  45. typedef struct gs_type0_data_s {
  46.     fmap_type FMapType;
  47.     byte EscChar, ShiftIn, ShiftOut;
  48.     gs_const_string SubsVector;    /* fmap_SubsVector only */
  49.       uint subs_size;        /* bytes per entry */
  50.       uint subs_width;        /* # of entries */
  51.     uint *Encoding;
  52.       uint encoding_size;
  53.     gs_font **FDepVector;
  54.       uint fdep_size;
  55.     const gs_cmap *CMap;        /* fmap_CMap only */
  56. } gs_type0_data;
  57. #define gs_type0_data_max_ptrs 3
  58.  
  59. typedef struct gs_font_type0_s {
  60.     gs_font_common;
  61.     gs_type0_data data;
  62. } gs_font_type0;
  63. extern_st(st_gs_font_type0);
  64. #define public_st_gs_font_type0()    /* in gsfont0.c */\
  65.   gs_public_st_complex_only(st_gs_font_type0, gs_font_type0, "gs_font_type0",\
  66.     0, font_type0_enum_ptrs, font_type0_reloc_ptrs, gs_font_finalize)
  67.